//package com.np.libstreaming1;
//
//import android.view.SurfaceView;
//
//import net.majorkernelpanic.streaming.Session;
//import net.majorkernelpanic.streaming.SessionBuilder;
//import net.majorkernelpanic.streaming.video.VideoQuality;
//import net.majorkernelpanic.streaming.audio.AudioQuality;
//
//public class StreamUtil {
//
//    public static void startStreaming(String rtmpUrl, SurfaceView surfaceView) {
//        SessionBuilder sessionBuilder = SessionBuilder.getInstance();
//        sessionBuilder.setContext(surfaceView.getContext())
//                .setAudioEncoder(SessionBuilder.AUDIO_AAC)
//                .setAudioQuality(new AudioQuality(8000, 16000))
//                .setVideoEncoder(SessionBuilder.VIDEO_H264)
//                .setVideoQuality(new VideoQuality(640, 480, 30, 1200))
//                .setSurfaceView(surfaceView)
//                .setPreviewOrientation(90)
//                .setDestination(rtmpUrl)
//                .build()
//                .start();
//    }
//}